<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>



            <style th:inline="text">
                body{
                    background: url("/static/images/course.jpg");
                }
            </style>

</head>

<body>
<h1 align="center">登陆</h1>

<div th:if="${error}">
    Unable to login. Check your username and password.
</div>


<div style="width:100%;text-align:center">
<!-- tag::thAction[] -->
<form method="POST" th:action="@{/login}" id="loginForm" align="center">
    <!-- end::thAction[] -->
    <label for="username">Username: </label>
    <input type="text" name="username" id="username" /><br/>

    <label for="password">Password: </label>
    <input type="password" name="password" id="password" /><br/>

    <input type="submit" value="Login"/>
</form>
</div>
</body>
</html>